updated test function and tests, changed and port to use auto
new file scripts