Added test for Post model. Minor fix for post schema/thread test

* Note: purposely left out usernameKeyFromId test since this is going to
be removed in the future.
* Made user_id a required field in the post schema
* Fix thread test which wasnt actually validating method.