Rework of this tests
- use dict idioms instead of array, so we don't have to unset all the time
- use new user api when appropriate
- fix test when we try to reuse the username of somebody who was previously banned.
This is no longer possible and is now reflected in the test