Testing , debugging and exceptions