Fix RippleBookType and unit tests