Add integration tests

run test and compare results with reference files