added tests to db and allow definition of tests when creating lessons