Add tests for jenkins agent check