added energia test code