extracting controller test helper
Merge pull request #4 from pseudomuto/test_cleanup

Extracting controller test helper