Added new tests to posts controller