Merged unit test code with existing test.