change __root to process.cwd()
add test