Improved post-install test script. Moved all helper methods to utils.