safer test

When the constructor is called without parameters this would fail.