Add CardGenerator unit test

Added a first unit test for the CardGenerator class. It currently only
contains one test case for generating a virtual nPA.