fix phpcs
cleanup in stdin producer controller
add stdin producer controller tests, small fixes