added in junit testing.  Also updated some requests to redirect
appropriately per Kevin's instruction.