Add math helper test
Minor refactor particle system