Add test for getting all as object.