Added tests demonstrating the IndexError problem
Fixed IndexError problem in QuerySet.__getitem__