push comparison into a separate parametised function.
update LICENSE, switch tests over to common test.