Bed tests and migrate