added script to run test, small fixes