fix warning (unused var)
add simple test