Added tests for view to handle post