Fixed some pylint gripings
Added tests for the new views