add test files, style consistency updates