Refactor checksum test classes