MDL-33911 mathslib: add unit test to demonstrate problem