Added the ROM capacity constraint and the basic tests for its
functionality