Fix failing builds for post controller spec

partial fix for #456