Remove last occurrence of `test`