added tests for safe_is