tetst bed for collection code