Add tests for new contains functionality.