add tests and support <script runat="server">