Install test dependencies and fix config