Updated error and warning message handling in app. Minor updates to test scripts.