Restore stubs in credentials_spec
Split up tests in gruntfile