Add tests and correct ruby->lua syntax serialization.