Fix tests when fraglib is not installed.
Better error message.
Print total run time and minor changes.