Adding unit tests to reproduce error.