Closes #8. Added tests stated in issue #8, but can’t reproduce this error across all tested python versions.