added test for empty result bug