finsihed up tests and refactors
Merge branch 'feature/graphs' of https://github.com/karlo57/gitlabhq into feature/graphs

* 'feature/graphs' of https://github.com/karlo57/gitlabhq:
  finsihed up tests and refactors