Added a test for arrayUsedSize