Adding unit tests for zcatoggle