test use equal instead of ok

I made the changes late at night and erroneously used the ok test method - if it fails, the equal method immediately gives the developer more information about the test fail.