Added tests and adjusted ignored files to keep the repo clean.