added test case for issue #12 and updated npm version