tests of work-card controller refactorised a bit