added test for nested where and limit