Added proper error handling as well as basic setup & teardown, beforeEach & afterEach methods