Added a basic test for the objectcreator