made some more changes to testcontroller and hooks directory