activity test code