fix tests for cgbg