add more tests for cases where listener should not create the pdf
add coverage to phpspec