Set a reasonable limit on the x axis range
Move test to interactive so that it will not be run automatically with the build