BS-7474: Add unit tests for WorkFactory to check that contexts work are
correctly set