Move addition test to separate function