tests and fixes for differentiation
build