more tests for last, first, filter, length; fix batchExecute bug
extract magic variable
use implicit class