refactored tests in post_spec
merged conflicts