Refactored ServerTest to use org.junit.Before