some test cleanup

sorry it took me so long to review your pull request...

It was already very good, I just changed the structure of the tests a little, to make them more readable (to be able to see what they do on the first glance). I replaced the `alert()` with our flash messages, because that's easier to test ;-)
\- I also wrote a custom matcher for jasmine to match flash messages and what they display, we didn't have that before.

So, if you pull this pull request it should update your branch and will update your pull request to diaspora automatically.
I just need you to rebase the branch on the latest state of the develop branch and then add a changelog entry.
Then we should be able to pull it asap :)

Thank you again for helping us!