Diaspora code review part04

worked on:
* create some tests
* add flash notification