improve apiurl validation, add tm.apiconfig tests