ok_status() refactorings and additional tests.