fix getting body
add test