Implemented CEBK write method and tests