Add sample testSpec.js file for testing.

Tests in testSpec.js run on server as well as on client side.