fixed broken unit tests, also added to the README explaining how to run both the karma tests and functional tests