better constructor for testing