Refactor tests post command
Create post when name is not "post"
Test message when file is not "post"