* Added ignore files for IntelliJ
* Corrected handling of faults in authenticate (closes #9)
* Added tests about this
* Some refactoring inside the tests