Add a test to collect objects of class defined in repl.