adding build pattern in testclasses