tests for assertArgspecMatches
fix assertArgSpecMatches to function as documented