a better way to organise tests for api