added test for read with empty out