Added test for bug in last commit

See d379429c3bec603d500185af1c4eb2b606fd561c