test(api): prepared test for https://github.com/hoodiehq/hoodie.js/issues/380