Support to compile from source as string and testcases to test the same

Support to compile from source as string and testcases to test the same