Add test files, refactor for NounouW sync deploy