fixed test to go with post method