added a test that proves #106
fixes #106

made it stateless, so consecutive calls are possible