Add missing test and add idea to gitignore