add controller constructor for test mode, add view print methods