Added possibility to run tests defined in package.json.
Added example tests.