Test script for REST interface