added test. Also added to gitignore for netbeans users