Added empty result tests. Corrected bug in __getitem__ on empty results.