Progress feedback and a lame test

Changes so that grunt does not terminate until the phantom process is complete. Also added a test. Lame yes, but still a test.