Updated test_scaling to fix Travis test failures.