fix #20, add bodyformat flag to protocol
move old test to tests folder