Added entities.py tests