Split out code from test file
Readme