please crate directory 'tests' and split this file to views.py and utils.py