Remove selenium test dependencies from agent. Fix specs