client lib and test page fixes