Tests for arithmetic functions
Move crypto onto stack