Functional Tests for test_case_test_runs and fix test_run functional test