add test for cleaning and validating obj with prototype