Automated tests fail due to checking redundant slash