Adapting unit test to modified code.