test runs correctly