Add unit tests for appMessages