test: fixes all test cases; fixes #109