Fix controller assigned value error, better search behaviour tests