adapted unit test cases