Build & deployment improvements

Add functional tests