add tests for ~define . rst arg
impl ~lambda + tests, fix ~define .rst bug