add unit tests for redis temp file models