RST parser improvements and more tests