Updated test.php & standardised department.php