Change hardcoded class in favor of using provided serializer class in AR integration tests

In this way, embed private method is more generic and we would be able to add more tests including other serializer classes.