Simple qiita pet tests

Adds a bunch of simple tests to make sure that pages render. Some pages and functions are not tested because there is no simple way to test them, but this covers almost all of them. 

Already found one issue using the tests and fixed it.
It's there so scope is correct for variable.