Changed capacity passed as option
Added docking and setting capacity tests