Adding unit tests and fixing bugs in skylight methods

[#66804960]