Add test for mIXed-caSE queries

Thanks to Hauke Lampe for reporting this problem