Test that fields are saved to db