protobuf-develop: tests were fixed

1) tests were fixed
2) old protocol files were moved into xml package
3) if-condition was added into internal logic