code formatting of test file
code formatting, added test command to package.json, changed API