Added tests for chunk management