fixed tests according to new constructor