Adding unit tests for the frame loader JS [#2380123]