add test for bed factory