added Test : note that it runs fine through eclipse, but in my setup the test hangs from the command line