remove unused exceptions
Add exception for closed queue and test to prove exception is called
add test for getName