Reduce test data duplication in functional test