Adds headless gem, try to fix functional test on CI