Add a test for primitive object functions.