remove direct call to constructor in test