update index file to use math functionality, update test files