Revert "Adding regression test for lexical extension."

This reverts commit 9f3e097468c458e6a42ea038d28da6af5a3d1556.
Adding unit test instead of ktest.