BUG: Correcting test code and fixing bug with create report button