now my tests catch the error better, but the error in index.js is not yet fixed