Added tests and code for model edit post.