Replace assert statement by unittest assert* methods\; and add _build to gitignore