add test to verify log content
add 'excludes' options, fixed #11