added test code for debugging (on the m1284p)