refactor a test function to avoid string typing
1 file changed