add unit tests for PostResult endpoint

Signed-off-by: Tim Henigan <tim.henigan@gmail.com>