update: added tests & typo