updated test.js to reflect callback in .read() method