Make tests compatible with Go version < 1.1

Signed-off-by: Ondrej Kupka <ondra.cap@gmail.com>