added YAML checking tests
Moved the YAML check to there own method so the ugly heredoc wouldn't be ugly in every method