more fixes for testing when latex not installed