use better constructor in test to see exceptions