remove createmedia, fix tests