Added some more tests for the posts controller. Also added Sinon functionality for Spies.