Using precondition tests

Tests that the object is correctly configured are preconditions to test
it's functionality. Tests are made to fail immediately if preconditions
don't hold.