test reads from string