add tests for issue #81
(ok on chrome, fail on FF and PhantomJS)