Test framework enhancements, fix the check_exports test