Added .test files to gitignore.
Created Error struct and wrote tests for it.