Adapting test cases