adds scripts sectino to package.json to run tests using 'npm test'
changes to functional instantiation - adds more tests