Export all hover preview functions as private functions to unit tests.
Update test file with some repeating-linear-gradients, repeating-radial-gradients, and some invalid color names.
Update unit tests with the correct cursor positions for all unit tests.