fixes for dropwizard sample and adding test for json view