change signature of `defineTest` to accept an object