Failing testcase where it mistakenly generates a list

The testcase can explain the scenario better than I can.