Reduce redundancy on unit tests.