fix typo in object test interface
 minor optimization and lint