added view tests for valid/invalid POST