add test for fabric js