Created unit test for issue #134
Fix for issue #134

Also simplified the SPARQL query processing path a bit.