added some unit test code to the standard library