Beam-based alignment tests at the Cooler Synchrotron (COSY)