AUI-1654 Add unit tests for custom rules API