"test" needs to be declared as volatile, see the reference.
Your use of "currentmils" makes no sense at all.
Mark