common: add requirement for overcommit memory in unittests

Some tests fail if overcommit is disabled due to large memory
requirements. Such tests can require overcommit enabled and
will be skipped otherwise.