Added start_activity function and tests