unit test for master