PEP8 compliance fixed
adding tests for views