Add some functional tests for new authenticated rest stuff