update gitignore and add test to convert lists to sets