The logic about the invalid request if there aren't keys or trying to access/index system collection should be tested.