add assertNil and assertNotNil functions