Added unit tests to cardboard