Add test. Closes #25.