energy linspace in test_new