Write some test cases for user stories.

As title.
Refactor tests

Add clean method in Repositories, clean all repositories in tearDown
method.