Fix exception mapping
Few more tests to exception mapping
Simple validation for JAX-RS resources.