added unit test for assuring context in jobs