[ci] add cache tests and bugfixing