Bug in tests ('post' != 'POST')