improve build.xml
fix bug inside InitMenuBar.java
add virtual display for testing
throw error if build, test or run failed
Merge pull request #53 from pointhi/master

* add gui tests and fix test conditions
* fix bug in gui