typo fix and add test() function