add support for private gems path for testing, fix tests, update #6