Added in test code for testing server-side code.