Added test cases for #61 (third one fails)
Fix for #61