Add repository to store object
Add adder for repository
Refactor functional test to implement repository