Add tests for phiroom app.
Improve tests of user app, add *.swp to git ignore.