add tests for read controller