creating models and tests