test on inheritance and getAll