completed test for element counting