Moved tests to local assert rather than global ok