add integration tests
run test and compare results with reference files