expect object to have length