code working. posts tests done