test for indexing with wrong data types