Added new testing structure based on py.test.
Reworked new testing structure, closer to old one.
Ported over id-gen tests.