Move Queue to Migrator namespace and improve testcase.

Signed-off-by: crynobone <crynobone@gmail.com>