write tests for Countable