Applying MagicMock to get API (for list api)

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>