Changes on AccountResource.java and addition of AccountResourceTest.java