added tests based on backbone doc