Added tests

Added the start of some basic tests and a ResultListSave function that
is used in them