implemented profile model collection and tested the correct data is encoded when json_encode is called