refactor nicothumb
add nicothumb test