Add import for test
Adapt abs for math availability detection