added unit test for exception constructor