entry of a test in db

Entry of a test in the database and its corresponding entries into other
tables. For example, module and course table need entries to create an
entry for a test.