NF: demeaning mapper

same as above -- no copy needed and use assert_array_equal