improve and bugfix manually tests
update some comment, normalize line end to LF