Fix automatically running tests