Added tests for Flow schemas.
Updated Message tests to be more strict.