More advanced test script

Can determine environment and which flags should be set.  Will fix
expose-gc bug in Windows.

Test coverage reports have been moved to the test folder and the
gitignore is updated accordingly.