[#20] - added inject middleware tests