adding test runner and adding require to lib to make it self contained