added the ability to know when it is full and tests for this