Form data submission. Also fixed bad test logic.