Add twig tests to check if a model is valid or not