This test adds testing for var log messages format. In this commit we
also enhance the functional.sh script to:
1) make sed usage more compatible with other systems (--expression -> -e)
2) Add color to output PASSED / FAILED
3) Generate template files for non existing outputs
4) Generate failed outputs for manual verification
Change-Id: I1146b96fe9c91473c0127d0c47f890db1ddfb7b5