fixed mistake catching exceptions in tests
testing path math