Add tests for #to_liquid
Rename some stuff for easier understanding.