updated tests for difference calculator's flatten object method