fixed the bug that passes the wrong DBDomain ID (server ID is not added) to DBAgent::addSetupFunction() and tests for the function."