more concise way of generating tests