Add tests for various stdlib functions