fix variable typo for customizing baseUrl and add test