Add unit test for emvedded form functional