credential: test helper can store empty username