Add .size() method to prevent list attribute from being accessed outside
Refactor tests to use .size() and .add()