fixes #5: Upgrade deps and add test cases