Added tests and code for <replies />
0.4.0