Add test file
Fix warnings