add unit test for Dog class