Main read function tests