add test for bw_apply
add helpers for item processing