Adding more unit tests

Added tests for triplify, quad and graph functions. Not sure if the style is quite right but hopefully they are relatively 'exhaustive'; made it so that a blank vector in a blank node position now throws an IllegalArgumentException.