rewrote assertion for checking length of collection