removed dynamic allocations from test cases