mapping by code tests