Added a test case for the code of master exists. -F