unit test for overriding