add unit tests for PostResult endpoint

Signed-off-by: Tim Henigan <tim.henigan@gmail.com>
Merge pull request #3 from thenigan/test-post-result

add unit tests for PostResult endpoint