fix logic error in instanceof validation check
tests for body validations
Merge pull request #13 from cflynn07/master

fix logic error in instanceof validation check