Unit tested controller