Remade tests to test business logic rather than http response codes
fix flake8 errors
Merge pull request #70 from cmrn/redone-tests

Remade tests to test business logic rather than http response codes