Fix getting author from user in posts unit tests