Extracted the artifact out of the test code