Small changes in post controller and tests