moved diff unit tests here