Add generateView tests, use fs.unlink rather than exec rm in tests