Add assertion for arraysearch method in UT.