Sort of functioning request test - fails in a weird way