fix tests for machines without go/gopherjs