Added test for Exception if invalid shadow token is created