Calapp controller checks for "new app" errors and prints the error message

finished test code for the model parts