added edit_last_entry abstraction for use in capybara tests
added invalid edit tests