Reduce test code