fixed broken ConsumerResourceTest and checkstyle