Add test case for Migration & Add migration path to deprecated nodes.

Detail explanation of the code will be added to the comments.