Added tests for votes controller, vote model and post model.
Merge branch 'voting'