remove useless import from hamcrest
add missing emptyline
test add an exit context to an existing queue

regression test on #5353