Refactor tests

Make tests more DRY by using a `user` fixture and `post_json` helper function