Fix and test for edit_post valid_options

Closes #29