Test as prototype function