added tests for serving two users and simplified the read function