Allow DOM selector in container option and add tests