Added junit tests for forms class