Started writing tests
Fatalf to Errorf
Merge pull request #4 from qatsindio/writing_tests

Writing tests