registry class with updated phpunit tests.

Signed-off-by: Sebastian Brosch <sebastian.brosch@brosch-software.de>