Simplifies container test with default parameter syntax, courtesy of @alanshaw