Query tests

Added tests for last few query functions
I might coalesce these two into just:

    nodes = map(lambda n: n.label, project.nodes)

or even:

    nodes = [n.label for in in project.nodes]

or hell, include the next line with:

    json.dumps([n.label for n in project.nodes])