more match API tests regarding primitive data types and better javadoc