gras: a unit test for the factory