CGIV 1653

Added the TestMigration abstract class.
I haven't written any unit tests for it but given the fact that we already use the method in the trait it should be fine.