added test code for CAN