Added a working test. Fixes #15.