Add test coverage and bug fixes for unpack and getInstalled. Add istanbul coverage.