add tests for detail and modal controllers