added and tested setPassType and setFocus methods