Add tests for script tag and checkouts

Last ones for today

@pickle27 @maartenvg