Better assertion test for Error testing