Fix notice message in the posts controller, implement tests for post delete