Add tests for new behavior and change the way getting keys
Remove stuff from .gitignore