add tests suggested by @sod in #170