Add support for getX and defaultInstance.
shorten test run on travis.