improve JAX-RS resource unit tests