go: refactor plaintext test