refactored some unit tests using beforeEach
Some changes to the readme