Test stringByDeletingLastPathComponent return class