Remove two tests which behave differently in Jenkins and command line