Changed capitalisation for consistency
Created file for shared test functions.

Avoids mixing real code with test code.