Added generic credential test plus subclasses for local and SSH. Fixes #133.