Fix for issue #28

Hi there. Please review my test and fix to issue #28.