Added tests for  transformer function