go: optimize tests