Added unit test for encoding OWS exceptions