Add xhr post method + test