Add some test infrastructure; get card data if card is in whiteboard.

Two big TODOs in there yet to be done.