Added test coverage using istanbul