Fixed bug involving use of hardcoded REST resource paths.

Added additional tests to the single entity scenario test.