fixed the test case to produce instances