refactor credentials tests