factor out the test_reverse function
move another test case to use te new test_reverese function
move more ok() calls out of expect code
test refactoring