fix AWT problem on Mac
exlude a few tests
restructure tests so they run successfully in batch mode
add gitignore file