Merge and adapt test batch backend functionality #229

see #229