code style: test script initialization
code style: catch blocks
code style: var declaration