Fix all the test bugs!

updated startup test with a unique port and updated heap dump args to take a heap dump into a file instead of a directory.