added test mode to Publication and Article