unit tests for delegated functions; factor out common test http handlers into 'fixtures.go' files