add statefull test
add comment for side effect