Added utility script to run tests
refactoring
Added more comments