modified tests to work with new constructor