Testing prototype features in JS