Changed exceptions to AssertionErrors