Test for constructor arguments and fetchObject method