unit test for trim()