an easier way to write tests