Add tests for sugar plugin. #57