Add tests for ui operator.