#149 refactor gui test utils