added test for searchByUsername