Improve test performance

See my comment at https://groups.google.com/forum/#!topic/julia-users/gKK3Pr3iFco