fix unit test now that external users have 'credentials' fields