Added slice and patch query operators with unit tests