add private methods for common assertions

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
Merge pull request #166 from joshuapaling/dry-unit-tests

add private methods for common assertions