added an mxunit test script for testing the isAvailable function