test fragment created via js