Added build dir to .gitignore
Refactored testStatCacheMethods test method