Add test for getId