Making RepresentationTest and JsonRepresentation both abstract and Generic