Test amended to check for explicit toMap type definition