ticket:5, write tests for processing form