Added regression tests for GitHub issues 7,8,9,11,12.

Also updated expected results.