Added a utilities file

This is for general methods that can be used by other tests to avoid
duplicating code.