fixed global object creation for tests