Some minor changes in the test cases.
Intermediate commit to fix embedded server function issue.
Bug fix in functions and procedures and changes in test cases.

There was a bug in creation of FUNCTION and PROCEDURE because create_info
in LEX is not initialized in the constructor. This bug was found when
--embedded flag was used while running tests. Though the bug is not epcific to
embedded server.