test that token is deleted when used passes, plus refactored the tests