fix indentation in package.json and improve npm scripts
move schema for integration tests into separate file
fix attribute picking
run posttest even if test fails