Add test cases for animal class