Add specs to prevent regression of #3. Closes #3.