Fixes #1
Test added.