test: add basic test
fix: file.name instead of file.base
fix: typeof error in generated specs