Added istanbul for test coverage and a bunch of missing tests