Additional test cases for mapping and resources. Added checks of exception messages.