Added test for exception mappers.
Fixed old IndexResource tests and added new ones.