Re-arranged createTerm method to play nice with code coverage
Added build directory to .gitignore