formatting, refactor Repository tests, use populated test data

Signed-off-by: Markus Lamm <markus Lamm@googlemail.com>