unit tests for blog entity and twig extension