encode defined, first test