fixed tests getByUsername