Added test for nested where and limit - it fails at the moment.