modified tests to use less memory