fix getAll and its test